package easymall.dao;

import easymall.po.Category;
import easymall.pojo.MyPage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface CategoryDao {


	public List<Category> getCategorysByPage(MyPage mypage);//根据页号获取分类

	public List<Category> allcategorys();

	//获取总分类数
	public int getCategorysCount();

	//商品分类
	public int checkCategorysExist(String name); //检查是否存在
	public int updateCategory(Category category); //更新
	public int saveCategory(String name);  //新增
	public int delCategory(Integer id); //删除某个类别
}
